package com.codegeek.project.slope.domain;

import com.codegeek.common.utils.ReplaceIllegalChar;
import com.codegeek.framework.aspectj.lang.annotation.Excel;
import lombok.Data;

/**
 *
 * @author
 */
@Data
public class SlopeDeviceData {

    /**
     * 序号
     */
    @Excel(name = "序号")
    private Long id;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String deviceName;

    /**
     * 设备类型
     */
    @Excel(name = "设备类型")
    private String deviceType;

    /**
     * 设备状态
     */
    @Excel(name = "在线状态")
    private String state;

    /**
     * 设备供应商
     */
    @Excel(name = "设备供应商")
    private String supplyName;

    /**
     * 供应商负责人
     */
    @Excel(name = "供应商联系人")
    private String supplyRepo;

    /**
     * 联系电话
     */
    @Excel(name = "联系人电话")
    private String supplyPhone;

    /**
     * 设备编号
     */
    @Excel(name = "设备编号")
    private String number;

    /**
     * 通信设备IMEI
     */
    @Excel(name = "通信设备IMEI")
    private String imei;

    /**
     * 坐标位置
     */
    @Excel(name = "坐标位置")
    private String position;

    public void setDeviceName(String deviceName) {
        this.deviceName = new ReplaceIllegalChar().replace(deviceName);
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = new ReplaceIllegalChar().replace(deviceType);
    }

    public void setState(String state) {
        this.state = new ReplaceIllegalChar().replace(state);
    }

    public void setSupplyName(String supplyName) {
        this.supplyName = new ReplaceIllegalChar().replace(supplyName);
    }

    public void setSupplyRepo(String supplyRepo) {
        this.supplyRepo = new ReplaceIllegalChar().replace(supplyRepo);
    }

    public void setSupplyPhone(String supplyPhone) {
        this.supplyPhone = new ReplaceIllegalChar().replace(supplyPhone);
    }

    public void setNumber(String number) {
        this.number = new ReplaceIllegalChar().replace(number);
    }

    public void setImei(String imei) {
        this.imei = new ReplaceIllegalChar().replace(imei);
    }

    public void setPosition(String position) {
        this.position = new ReplaceIllegalChar().replace(position);
    }
}
